home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / tool / artemis1 / src / colchg.md < prev    next >
Encoding:
Text File  |  1995-05-14  |  1.6 KB  |  60 lines

  1.  
  2. #define itemExec 1
  3. #define itemCancel 2
  4. #define itemCol1 3
  5. #define itemCol2 4
  6. #define itemColList 5
  7. #define itemRgbBar 6
  8. #define itemMethod 7
  9. #define itemHelp 8
  10. #define itemCmdMono 9
  11. #define selMethod 10
  12.  
  13. static BUTTON colchgmenu_buttons[] =
  14. {
  15.     {0,0,0,0,typeOTHER,0,NOFNC,NO,NULL,0},
  16.     {16,MYLEN-20-5,30,16,typeSTRb,(int)"実行",NOFNC,NO,NULL,itemExec},
  17.     {60,MYLEN-20-5,30,16,typeSTRb,(int)"取消",NOFNC,NO,NULL,itemCancel},
  18.     {16,32,0,0,typeSTR,(int)"もとの色 :",NOFNC,NO,NULL,0},
  19.     {112,32,32,16,typeOTHER,0,NOFNC,NO,NULL,itemCol1},
  20.     {16,64,0,0,typeSTR,(int)"変換後の色:",NOFNC,NO,NULL,0},
  21.     {112,64,32,16,typeOTHER,0,NOFNC,NO,NULL,itemCol2},
  22.     {120,48,0,0,typeSTR,(int)"↓",NOFNC,NO,NULL,0},
  23.     {176,32,64,64,typeOTHER,0,drawPltList_init,NO,NULL,itemColList},
  24.     {256,32,RGBBARXLEN,RGBBARYLEN,typeOTHER,0,drawRgbBar,NO,NULL,itemRgbBar},
  25.     {16,112,0,0,typeSTR,(int)"変換方法",NOFNC,NO,NULL,0},
  26.     {0,0,0,0,typeOTHER,0,NOFNC,NO,NULL,itemMethod},
  27.     {16-4,132,16*17+8,20*4+16,typeBOX,White,NOFNC,NO,NULL,itemHelp},
  28.     {128,MYLEN-20-5,66,16,typeSTRb,(int)"モノクロ化",NOFNC,NO,NULL,itemCmdMono},
  29.     {-1}
  30. };
  31.  
  32. static SELECTOR_ELEMENT colchgmenu_selelm0[] =
  33. {
  34.     {96,112,"1",YES,NULL,0},
  35.     {96+32,112,"2",YES,NULL,0},
  36.     {96+32*2,112,"3",YES,NULL,0},
  37.     {96+32*3,112,"4",YES,NULL,0},
  38.     {-1}
  39. };
  40.  
  41. static SELECTOR colchgmenu_sels[] =
  42. {
  43.     {0, colchgmenu_selelm0,NULL, NULL,selMethod},
  44.     {-1}
  45. };
  46.  
  47. static MENU colchgmenu =
  48. {
  49.     "色を変換する",
  50.     304,MYLEN,
  51.     colchgmenu_buttons,
  52.     NULL,
  53.     colchgmenu_sels,
  54.     NULL,NULL,NULL,
  55.     disp_colchgmenu,
  56.     erase_colchgmenu,
  57.     0,0,0,0,NO,NO,NULL
  58. };
  59.  
  60.